/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package serialization_client;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;

/**
 *
 * @author alexey
 */
public class Serialization_client {

    /**
     * @param args the command line arguments
     * @throws java.io.FileNotFoundException
     * @throws java.lang.ClassNotFoundException
     */
    public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException {
        // TODO code application logic here
        FileInputStream fis = new FileInputStream("jack");
        ObjectInputStream ois = new ObjectInputStream(fis);
        Aliev al1 = (Aliev) ois.readObject();
        System.out.println(al1.zp + ";" + al1.height + ";" + al1.name + ";" + al1.width);
    }
    
}